package com.bjsxt.details.dao.impl;

import com.bjsxt.details.dao.ItemDetailDao;
import com.bjsxt.livegoods.pojo.Item;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

/**
 * @ClassName : ItemDetailDaoImpl
 * @Description :
 * @Author : ZWZ
 * @Date: 2021/8/25 12:10
 */
@Repository
public class ItemDetailDaoImpl implements ItemDetailDao {

    @Autowired
    private MongoTemplate mongoTemplate;

    @Override
    public Item findItemById(String id) {
        return mongoTemplate.findById(id, Item.class);
    }

}
